﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Database
{
    public partial class Item : System.Web.UI.UserControl
    {
        public Guid ItemID { get; set; }
        public int Number
        {
            get
            {
                try
                {
                    return int.Parse(uiNumber.Text);
                }
                catch
                {
                    return 0;
                }
            }
            set
            {
                uiNumber.Text = String.Format("{0}", value);
            }
        }
        public string Text
        {
            get { return uiText.Text; }
            set { uiText.Text = value; }
        }
        public int Total
        {
            get { return int.Parse(uiTotal.Text); }
            set { uiTotal.Text = String.Format("{0}", value); }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}